package com.wd.amodel.vm.fetcher;

import com.wd.amodel.vm.listener.ILoginImageListListener;
import com.wd.base.util.Logger;

import java.util.ArrayList;
import java.util.List;

/**
 * @author W4255
 * @version [V1.0.0.000, 2021/2/6 18:22]
 * @Description: 数据的获取器
 */
public class ListImgDataFetcher {
    private static final String TAG = "ListImgDataFetcher";

    private ILoginImageListListener listListener;

    /**
     * 当前播放节目数据抓取器的构造函数
     *
     * @param vmListener
     */
    public ListImgDataFetcher(ILoginImageListListener vmListener) {
        this.listListener = vmListener;
    }

    /**
     * 加载
     */
    public void loadData() {
        Logger.i(TAG, "loadData");
        String url0 = "https://pics3.baidu.com/feed/4b90f603738da9772937bfd01959ba1f8618e33b.png?token=10c9af73b213298645482fe817869fca&s=160BD705927B779C000C4DB103002080";
        String url1 = "https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3118529426,2885674921&fm=26&gp=0.jpg";
        String url2 = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fdingyue.nosdn.127.net%2FGihVtrbCngePgSxCUg4GyJIF7g4mTyWZ2MD4gzbTZcSHH1535696417228.jpg&refer" +
                "=http%3A%2F%2Fdingyue.nosdn.127.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1614389139&t=f86b5df43fe20f13b954d989ce586b4d";
        String url3 = "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3080003553,2936591222&fm=26&gp=0.jpg";
        String url4 = "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1097078017,3069003581&fm=26&gp=0.jpg";
        String url5 = "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2616381402,2370206065&fm=26&gp=0.jpg";
        String url6 = "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1176608097,2954623235&fm=26&gp=0.jpg";
        String url7 = "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=2168338027,2548709357&fm=26&gp=0.jpg";
        String url8 = "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1963317246,3631915417&fm=26&gp=0.jpg";
        String url9 = "https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1072380275,3537703483&fm=26&gp=0.jpg";
        String url10 = "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1872148222,172250237&fm=26&gp=0.jpg";
        List<String> list = new ArrayList<>();
        list.add(url0);
        list.add(url1);
        list.add(url2);
        list.add(url3);
        list.add(url4);
        list.add(url5);
        list.add(url6);
        list.add(url7);
        list.add(url8);
        list.add(url9);
        list.add(url10);
        if (listListener != null) {
            listListener.imageList(list);
        }
    }
}
